
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>商品列表</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="../../layuiadmin/style/admin.css" media="all">
  <link rel="stylesheet" href="../../layuiadmin/style/template.css" media="all">
</head>
<style>

</style>
<body>

<div class="sss">
  <!--<img  style="" id="ens" width="150px"  src="../../../../uploads/img/timg.jpg">-->
</div>

<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script>

    var img = {$data_img};
//    console.log(img);
    $.each(img,function (i,item){
        console.log(item);
        $('.sss').append(
           '<img  width="150px"  src="{$url1}/uploads/subject/'+item+'">'
        )
    })

</script>

  <script src="../../layuiadmin/layui/layui.js"></script>
  <script>
  layui.config({
    base: '../../layuiadmin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index']);
  layui.use(['laypage', 'layer'], function(){
  var laypage = layui.laypage
  ,layer = layui.layer;

  //总页数低于页码总数
  laypage.render({
     elem: 'demo0'
    ,count: 50 //数据总数
  });
});
  </script>
</body>
</html>